<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8">
<!--  <meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<!--  <meta name="viewport" content="width=device-width, initial-scale=1">-->
<!--Bootstrap 简单页面 上述3个标签必须放在最前面，任何其他内容都必须跟随其后  -->
<title>Insert title here</title>
<style type="text/css">
ul li {list-style-type:none;}
</style>
</head>
<body>

	<h1>*****the good...</h1>
	<!--<button onclick="doLoadAdd()"> 添加商品</button>
	<a href="/goods/doLoadAdd">add</a>
	  <div >
	<form action="/goods/doSaveObject" method="post">
	<ul>
	<li>name:
	<li><input type="text" name="name">
	<li>remark:
	<li><textarea rows="3" cols="50" name="remark"></textarea>
	<li><input type="submit" value="save">
	</ul>
	</form>
	<hr/>-->
	<table>
		<thead>
			<tr>

				<th>id</th>
				<!-- th用于定义当前列的标题 -->
				<th>title</th>
				<th>category</th>
				<th>startTime</th>
				<th>endTime</th>
				<th>remark</th>
				<th>stat</th>
				<th>createdTime</th>
				<th>createdUser</th>
				<th colspan="2">operation</th>
			</tr>
		</thead>
		<tbody>
			<!-- tbody中通常用来定义表格的表体部分：呈现具体业务数据的区域 -->
			<tr th:each="a:${list}">
			<td th:text="${a.id}">1</td>
			<td th:text="${a.title}">ABS</td>
			<td th:text="${a.category}"></td>
			<td th:text="${#dates.format(a.startTime,'yyyy/MM/dd HH:mm')}"></td>
			<td th:text="${#dates.format(a.endTime,'yyyy/MM/dd HH:mm')}"></td>
			<td th:text="${a.remark}"></td>
			<td th:text="${a.stat}"></td>
			<td th:text="${#dates.format(a.createdTime,'yyyy/MM/dd HH:mm')}"></td>
			<td th:text="${a.createdUser}"></td>
			<td><a th:href="@{/goods/doDeleteById(id=${g.id})}">delete</a></td>
			<td><a th:href="@{/goods/doFindById/{id}(id=${g.id})}">update</a></td>
			</tr>
		</tbody>
	</table>
	<!--  </div>-->
	<!--  js代码写到body底端
	<script type="text/javascript">
	function doLoadAdd(){
		//跳转到url对象的地址
		location.href='doLoadAdd';
	}
	</script>-->
</body>
</html>
